#include "clickedoncelabel.h"


ClickedOnceLabel::ClickedOnceLabel(QWidget *parent) : QLabel(parent)
{
    setCursor(Qt::PointingHandCursor);
}

void ClickedOnceLabel::mousePressEvent(QMouseEvent *event)
{
    if (event->button() == Qt::LeftButton) {
        emit clicked(this->text());
        return ;
    }

    QLabel::mousePressEvent(event);
}
